export function shuffle(array) {
    let len = array.length;
    
    while (len) {
        const rand = Math.floor(Math.random() * len--);
        const last = array[len];

        array[len] = array[rand];
        array[rand] = last;
    }
    
    return array;
}

export function speed() {
    return [0.1 * Math.random() + 0.01, -(0.1 * Math.random() + 0.01)];
}